/*
  Copyright 2009 Smart Enterprise Solution Corp.
  Email: contact@ses.vn - Website: http://www.ses.vn
  KimNgan Project.
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;

using SES.CMS.DAL;
using SES.CMS.DO;
/// <summary>
/// Summary description for cmsGioHangBL
/// </summary>
namespace SES.CMS.BL 
{
    public class cmsGioHangBL 
    {
    	#region Private Variables
		cmsGioHangDAL objcmsGioHangDAL;
		#endregion
		
        #region Public Constructors
        public cmsGioHangBL()
        {
            //
            // TODO: Add constructor logic here
            //
            objcmsGioHangDAL=new cmsGioHangDAL();
        }
        #endregion       

        #region Public Methods
        public int Insert(cmsGioHangDO objcmsGioHangDO)
        {
            return objcmsGioHangDAL.Insert(objcmsGioHangDO);
        }
        public DataTable SelectBySession(string id)
        {
            return objcmsGioHangDAL.SelectBySession(id);
        }
        public DataTable SelectBySessionChuaXL(string id)
        {
            return objcmsGioHangDAL.SelectBySessionChuaXL(id);
        }
        public DataTable SelectBySessionID(string session)
        {
            return objcmsGioHangDAL.SelectBySession(session);
        }
        public int Insert2(cmsGioHangDO objcmsGioHangDO)
        {
            return objcmsGioHangDAL.Insert2(objcmsGioHangDO);
        }

        public int Update(cmsGioHangDO objcmsGioHangDO)
        {
             return objcmsGioHangDAL.Update(objcmsGioHangDO);

        }

        public int Delete(cmsGioHangDO objcmsGioHangDO)
        {
             return objcmsGioHangDAL.Delete(objcmsGioHangDO);

        }

         public int DeleteAll()
        {
             return objcmsGioHangDAL.DeleteAll();
        }

        public cmsGioHangDO Select(cmsGioHangDO objcmsGioHangDO)
        {
            return objcmsGioHangDAL.Select(objcmsGioHangDO);
        }

        public ArrayList SelectAll1( )
        {
         return objcmsGioHangDAL.SelectAll1();
        }
        
        public DataTable SelectAll( )
        {
         return objcmsGioHangDAL.SelectAll();
        }

        public cmsGioHangDO SelecBySessionAndSP(string session, Int64 id)
        {
            return objcmsGioHangDAL.SelecBySessionAndSP(session, id);
        }

        public cmsGioHangDO SelecBySessionAndSPNonXL(string session, Int64 id)
        {
            return objcmsGioHangDAL.SelecBySessionAndSPNonXL(session, id);
        }

        public DataTable GetCustomerInfo(string SessionID)
        {
            return objcmsGioHangDAL.GetCustomerInfo(SessionID);
        }
#endregion          
    
    }

}
